import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import './router_handler.dart';
import './router_classification.dart';
import './router_home.dart';

class Routes {
  static String root = '/';
  static String detailsPage = '/detail';
  static String classification = '/ification';
  static String homes = '/home';
  static void configureRoutes(Router router){
      router.notFoundHandler = new Handler(
        handlerFunc: (BuildContext context,Map<String,List<String>> params){
          print('找不到页面，3秒跳转到首页');
        }
      );
      router.define(detailsPage,handler: derailsHandler);
      router.define(classification,handler:classificationHandler);
      router.define(homes,handler: homeHandler);
  }
}